﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
using YiSha.Entity;
using YiSha.Entity.QixingManage;
using YiSha.Util;

namespace YiSha.Model.Param.QixingManage
{ 
    public class KnowledgePostsDto 
    {
        [JsonConverter(typeof(StringJsonConverter))]
        public string? Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        /// <returns></returns>
        public string title { get; set; }
        /// <summary>
        /// 发布者ID
        /// </summary>
        /// <returns></returns> 
        [JsonConverter(typeof(StringJsonConverter))]
        public string? user_id { get; set; }
        /// <summary>
        /// 文字描述
        /// </summary>
        /// <returns></returns>
        public string content { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        /// <returns></returns>
        public string cover_image { get; set; }
        /// <summary>
        /// 浏览次数
        /// </summary>
        /// <returns></returns>
        public int? view_count { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public int? state { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary> 
        public DateTime? created_at { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <returns></returns> 
        public DateTime? updated_at { get; set; }
        /// <summary>
        /// 资源
        /// </summary>
        public List<KnowledgePostMediaEntity> knowledgePostMedia { get; set; }

        public long? tenant_id { get; set; }
    }
}
